<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://displaytag.sf.net" prefix="display"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>


	<link href="../../css/style.css" rel="stylesheet" type="text/css" />
	<table width="100%" border="0" cellspacing="0" cellpadding="0">
		<tr>
			<td>
				<div class="blue-text16" style="margin: 0px 0px 0px 0px">
					<s:text name="mywantedpurchased.tendertitle" />
				</div>
				<div class="header-separator-bg" style="margin: 10px 5px 17px 0px"></div>
				<div style="margin: 0px 0px 12px 0px">

					<!--------------------------------------------------------->
					<table width="100%" cellpadding="0" cellspacing="0" class="filepc">
									<tr>
										<td colspan="9">
											<table width="100%">
												<tr>
													<td width="10%" align="center" valign="top"
														class="grid-header-bg grid-header-text">
														<s:text name="label.system.Photo" />
													</td>
													<td align="center" width="25%" valign="top"
														class="grid-header-bg grid-header-text">
														<a href=""><s:text name="UserShop.para4" /></a>
													</td>
													<td align="center" width="10%" valign="top"
														class="grid-header-bg grid-header-text">
														<s:text name="label.system.Price" />
													</td>
													<td align="center" width="10%" valign="top"
														class="grid-header-bg grid-header-text">
														<s:text name="allItemsForSale.shipping" />
													</td>
													<td align="center" width="10%" valign="top"
														class="grid-header-bg grid-header-text">
														<s:text name="label.system.Quantity" />
													</td>
													<td align="center" width="10%" valign="top"
														class="grid-header-bg grid-header-text">
														<s:text name="feedback_list_header_seller" />
													</td>
													<td align="center" width="15%" valign="top"
														class="grid-header-bg grid-header-text">
														<s:text name="list_header_close_time" />
													</td>
													<td align="center" width="10%" valign="top"
														class="grid-header-bg grid-header-text">
														<s:text name="label.system.Actions" />
													</td>
												</tr>
											</table>
											<display:table name="wonlist" cellpadding="0" size="2" style="width: 100%;" cellspacing="1" requestURI="" id="row" class="common-text" pagesize="${listingOptions.listingsItemsPerPage}">
												<display:column class="grid-bg common-text">
													<table width="100%">
														<tr>
															<td rowspan="3" width="10%"  align="center" valign="middle"
																class="grid-bg common-text">
																<s:if test="#attr.row.items.thumbImage != null && #attr.row.items.thumbImage !=''">
																	<a href=""> <img
																	src="servlet/ImageServlet?dto=ItemsDTO&id=<s:property value="#attr.row.items.itemId"/>"
																		alt="" class="product-border" height="45" width="45">
																</a>
																</s:if>
																<s:else><img src="images/no_image.gif" alt="No Image" height="35" width="45"/></s:else>
															</td>
															<td align="center" valign="top" width="25%"
																class="grid-bg common-text">
																<a href="showItem.htm?cid=<s:property value="#attr.row.items.itemId" />&p=myTenderPurchased"><s:property value="#attr.row.items.title"/></a>
															</td>
															<td align="center" valign="top" width="10%"
																class="grid-bg common-text">
																	<s:property value="#attr.row.price"/>
															</td>
															<td align="center" valign="top" width="10%"
																class="grid-bg common-text">
																	<s:property value="#attr.row.items.currency.symbol" /><s:property value="#attr.row.items.shipPayment"/>
															</td>
															<td align="center" valign="top" width="10%"
																class="grid-bg common-text">
																<s:property value="#attr.row.quantity" />
															</td>
															<td align="center" valign="top" width="10%"
																class="grid-bg common-text">
																<s:property value="#attr.row.user.userId" />
															</td>
															<td align="center" valign="top" width="15%"
																class="grid-bg common-text">
																<s:date name="#attr.row.items.endTime" format="dd/MM/yyyy hh:mm:ss"/>
															</td>
															<td align="center" valign="top"
															class="grid-bg common-text" id="mddm" width="10%">
															<a href="#" class="common-link"
																onmouseover="mopen('<s:property value="#attr.row.items.itemId" />', this, 'common-link', 'right', <s:property value="#attr.row.items.itemId" />)"
																onmouseout="mclosetime()"><s:text name="lable.select" /></a>
															<div id="<s:property value="#attr.row.items.itemId" />"
																onmouseover="mcancelclosetime()"
																onmouseout="mclosetime()" style="visibility: hidden">
																<a href="askSeller.htm?cid=<s:property value="#attr.row.items.itemId" />&pass=<s:property value="#attr.row.id" />"><s:text name="Contact_Seller" /> </a>
																<a href="feedbackForSeller.htm?uid=<s:property value="#attr.row.user.id" />&cid=<s:property value="#attr.row.items.itemId" />&p=myTenderPurchased"><s:text name="Leave_Feedback" /></a>
																<a href="viewSimilarItem.htm?cid=<s:property value="#attr.row.items.itemId" />"><s:text name="View_Sellers_Other_Items" /></a>
																<a href="addToFavoriteUser.htm?userId=<s:property value="#attr.row.user.id" />&action=myTenderPurchased"><s:text name="add_to_favorite_seller" /></a>
																<a href="viewSimilarItem.htm?cid=<s:property value="#attr.row.items.itemId" />"><s:text name="View_Similar_Items" /></a>
																<s:if test="#attr.row.items.invoice.paidDate != null"></s:if>
																<s:else>
																	<a href="markAsPayed.htm?invoiceId=<s:property value="#attr.row.items.invoice.invoice" />"><s:text name="mark_as_payed" /></a>
																</s:else>
																<s:if test="#attr.row.items.itemNote.id != null && #attr.row.items.itemNote.id != 0">
																	<a href="addNotes.htm?cid=<s:property value="#attr.row.items.itemNote.id" />&action=editnote&p=myTenderPurchased.htm"><s:text name="edit_note" /></a>
																</s:if>
																<s:else>
																	<a href="addNotes.htm?cid=<s:property value="#attr.row.items.itemId" />&action=addnote&p=myTenderPurchased.htm"><s:text name="lable.addnote" /></a>
																</s:else>
																<a href="askForInvoice.htm?itemId=<s:property value="#attr.row.items.itemId" />&action=myTenderPurchased.htm"><s:text name="ask_for_invoice" /></a>
															</div>
														</td>
														</tr>
														<s:if test="#attr.row.items.note != null && #attr.row.items.note != ''">
														<tr>
															<td class="common-text" colspan="10" bgcolor="#EEEEEE">
																<b><s:text name="label_My Note" />:&nbsp;&nbsp;&nbsp; </b><s:property value="#attr.row.items.note"/>
															</td>
														</tr>
														</s:if>
													</table>
												</display:column>
											</display:table>
												</tr>
											</table>
	</table>
